package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TSettingMapper;
import com.ruoyi.system.domain.TSetting;
import com.ruoyi.system.service.ITSettingService;

/**
 * 系统配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TSettingServiceImpl implements ITSettingService 
{
    @Autowired
    private TSettingMapper tSettingMapper;

    /**
     * 查询系统配置
     * 
     * @param tSetting 系统配置主键
     * @return 系统配置
     */
    @Override
    public TSetting selectTSettingBySid(TSetting tSetting)
    {
        return tSettingMapper.selectTSettingBySid(tSetting);
    }

    /**
     * 查询系统配置列表
     * 
     * @param tSetting 系统配置
     * @return 系统配置
     */
    @Override
    public List<TSetting> selectTSettingList(TSetting tSetting)
    {
        return tSettingMapper.selectTSettingList(tSetting);
    }

    /**
     * 新增系统配置
     * 
     * @param tSetting 系统配置
     * @return 结果
     */
    @Override
    public int insertTSetting(TSetting tSetting)
    {
        return tSettingMapper.insertTSetting(tSetting);
    }

    /**
     * 修改系统配置
     * 
     * @param tSetting 系统配置
     * @return 结果
     */
    @Override
    public int updateTSetting(TSetting tSetting)
    {
        return tSettingMapper.updateTSetting(tSetting);
    }

    /**
     * 批量删除系统配置
     * 
     * @param sids 需要删除的系统配置主键
     * @return 结果
     */
    @Override
    public int deleteTSettingBySids(Long[] sids)
    {
        return tSettingMapper.deleteTSettingBySids(sids);
    }

    /**
     * 删除系统配置信息
     * 
     * @param sid 系统配置主键
     * @return 结果
     */
    @Override
    public int deleteTSettingBySid(Long sid)
    {
        return tSettingMapper.deleteTSettingBySid(sid);
    }
}
